package com.isoft.airportsystem.service.flight;

import com.isoft.airportsystem.entity.flight.Airport;
import com.isoft.airportsystem.util.PageResult;

import java.util.List;

public interface AirportService {
    // 获取所有机场
    List<Airport> getAllAirports();

    // 根据代码获取机场
    Airport getAirportByCode(String airportCode);

    // 条件查询机场
    List<Airport> queryAirports(Airport airport);

    // 分页查询机场
    PageResult<Airport> queryAirportPage(int pageNum, int pageSize, Airport airport);

    boolean addAirport(Airport airport);
    boolean updateAirport(Airport airport);
    boolean deleteAirport(String airportCode);
}
